Skip to content

Place the correct program and arguments into RunProgramError #347

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2025

Conversation

cmcgee1024
Copy link
Member

When runProgramOutput produces an error the exit code, program
name, and arguments are captured in a RunProgramError. However,
the program is being set to the first argument instead of the program
name, and the arguments doesn't include that first argument.

Correctly set the program name to the be the program name, and
set the arguments to be the entire argument list so that the error is
clear, and has all of the details.

@cmcgee1024
Copy link
Member Author

@swift-ci test macOS

@cmcgee1024 cmcgee1024 merged commit 2798ceb into swiftlang:main May 12, 2025
23 checks passed
patricktcoakley pushed a commit to patricktcoakley/swiftly that referenced this pull request May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants